//index.js
//获取应用实例
const app = getApp()
Page({
  data: {
    motaiHidden:true
  },
  onLoad: function () {
   var that=this;
   wx.getSystemInfo({
     success: function(res) {
       that.setData({
         winHeight:res.windowHeight
       })
     },
   })
  },
  callCell:function(e){
    wx.makePhoneCall({
      phoneNumber: ''+e.target.id,
    })
  },
  getLocaltion:function(){
    wx.openLocation({
      latitude: 30.68104,
      longitude: 104.00387 ,
    })
  },
  clickImage: function (e) {
   /* wx.previewImage({
      urls: [e.target.id],
    })*/
    this.setData({
      motaiHidden:false,
      motaiImage: e.target.id
    })
  },
  motaihidden:function(){
    this.setData({
      motaiHidden: true,
    })
  }
})
